
import request from '@/utils/myAioxs'

export function upload(data) {
  return request({
    url:'/material-resource/v1/uploads',
    method: 'post',
    data,
    headers: { "Content-Type": "multipart/form-data" },
  })
}
export function uploadFile(data) {
  return request({
    url:'/file-upload/v1/upload',
    method: 'post',
    data,
    headers: { "Content-Type": "multipart/form-data" },
  })
}
//更新用户头像
export function uploadHeaderImg(data) {
  return request({
    url:'/user/v1/change-user-header-img',
    method: 'post',
    data,
    headers: { "Content-Type": "multipart/form-data" },
  })
}
